package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 流水号业务对象 sys_biz_serial
 *
 * @author chenyun
 * @date 2022-03-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("流水号业务对象")
public class SysBizSerialBo extends BaseEntity {

    /**
     * 
     */
    @EQ
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 机构编号
     */
    @EQ
    @ApiModelProperty(value = "机构编号", required = true)
    @NotNull(message = "机构编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    /**
     * 业务编号
     */
    @EQ
    @ApiModelProperty(value = "业务编号", required = true)
    @NotBlank(message = "业务编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizId;

    /**
     * 年
     */
    @EQ
    @ApiModelProperty(value = "年", required = true)
    @NotNull(message = "年不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer year;

    /**
     * 期间
     */
    @EQ
    @ApiModelProperty(value = "期间", required = true)
    @NotNull(message = "期间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer period;

    /**
     * 当前流水
     */
    @EQ
    @ApiModelProperty(value = "当前流水", required = true)
    @NotNull(message = "当前流水不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseNum;


}
